package poo.exo1;

import java.util.ArrayList;
import java.util.List;





abstract public class Compte {
	
	

	protected String nom;
	protected int numeroCompte;
	protected String mdp;
	protected double solde;
	protected boolean verrouiller;
	
	public String getMdp() {
		return mdp;
	}
	public boolean isVerrouiller() {
		return verrouiller;
	}
	public void setVerrouiller(boolean verrouiller) {
		this.verrouiller = verrouiller;
	}
	abstract public void retrait(double somme) throws MonException;
	abstract public void depot(double somme) throws MonException;

	
	
	
	@Override
	public String toString() {
		return "nom=" + nom + ", numeroCompte=" + numeroCompte
				+ ", solde=" + solde;
	}
	public Compte(String nom, int numeroCompte, double solde,String mdp) {
		//super();
		this.nom=nom;
		this.numeroCompte=numeroCompte;
		this.solde=solde;
		this.mdp=mdp;
		
		// TODO Auto-generated constructor stub
	}
	
	
	

		
}
